package com.oracle.lingshangejia.adapter;

import android.support.annotation.Nullable;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.oracle.lingshangejia.R;
import com.oracle.lingshangejia.bean.ConsultationBean;
import com.oracle.lingshangejia.utils.TimeUtils;

import java.util.List;

/**
 * @松 on 2019/6/26 11:42
 *
 * 专家会诊适配器
 */
public class ConsultationAdapter extends BaseQuickAdapter<ConsultationBean.DataBean, BaseViewHolder> {
    public ConsultationAdapter( @Nullable List<ConsultationBean.DataBean> data) {
        super(R.layout.item_consultaion, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ConsultationBean.DataBean item) {
        helper.setText(R.id.tv_doctor, item.getName());
        helper.setText(R.id.tv_patient, item.getJmName());
        helper.setText(R.id.tv_date,item.getHzrq().substring(0,11) );



    }


}
